import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Manager from '../views/Manager.vue'
import ArticleDetail from '../views/ArticleDetail.vue'
import MotifyArticle from '../views/MotifyArticle.vue'
import UserArt from '../views/UserArt.vue'
import UserDetail from '../views/UserDetail.vue'
import ModifyWord from '../views/ModifyWord.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/manager",
  },
  {
    path: "/home",
    name: 'Home',
    component: Home
  },
  {
    path: "/manager",
    name: 'Manager',
    component: Manager
  },
  {
    path: "/articleDetail",
    name: 'ArticleDetail',
    component: ArticleDetail
  },{
    path: "/motifyArticle",
    name: 'MotifyArticle',
    component: MotifyArticle
  },{
    path: "/userArt",
    name: 'UserArt',
    component: UserArt
  },{
    path: "/userDetail",
    name: 'UserDetail',
    component: UserDetail
  },{
    path: "/ModifyWord",
    name: 'ModifyWord',
    component: ModifyWord
  }

]

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
})

export default router
